if Variable MSI45_X64 Equals FALSE
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
  Set Variable MSI45PATH_X64 to 
  Define File Bag : C:\Program Files (x86)\InstallAware\InstallAware 15\runtimes\msi45bin_64\*.*, include files recursively, get runtime location of files into variable MSI45PATH_X64
  Set Variable PROGRESSTEXT to Installing Microsoft Windows Installer 4.5 (x64)
  Set Variable PROGRESSMODE to MARQUEE
  if Variable ISVISTA Equals TRUE
    Run Program wusa.exe "$MSI45PATH_X64$\Windows6.0-KB942288-v2-x64.msu" /quiet /norestart (WAIT, get result into variable MSI45_X64)
  else
    if Variable IS2003 Equals TRUE
      Run Program $MSI45PATH_X64$\WindowsServer2003-KB942288-v4-x64.exe /quiet /norestart (WAIT, get result into variable MSI45_X64)
    end
  end
  Set Variable PROGRESSMODE to 
  if Variable MSI45_X64 not Equals 0
    if Variable MSI45_X64 Equals 3010
      MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
      if Variable REBOOTNOW Equals OK
        Reboot Computer and Resume Setup
      else
        Terminate Installation
      end
    else
      MessageBox: $TITLE$ Setup, Windows Installer 4.5 (x64) could not be installed. Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
      Terminate Installation
    end
  end
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
end
 
